@echo off
:: Path of GACUtil exe
@SET GACUTIL="C:\Release\Project\1.0\gacutil.exe"
:: Path from where DLLs will be deployed
@Set DllPath=C:\Release\Project\1.0\
:: All project components to be deployed
@Set ProjectComponentDll=My.Project.Components.dll
@Set ProjectOrchestrationDll=My.Project.Orchestrations.dll
@Set ProjectPipelineComponentDll=My.Project.PipelineComponents.dll
@Set ProjectPipelineDll=My.Project.Pipelines.dll
@Set ProjectSchemasDll=My.Project.Schemas.dll
@Set ProjectTransformsDll=My.Project.Transforms.dll

:: BizTalk Installation path read from registry
SET BIZINSTALLATION=
FOR /F "tokens=2* delims= " %%A IN ('REG QUERY "HKLM\SOFTWARE\Microsoft\BizTalk Server\3.0" /v InstallPath') DO SET BIZINSTALLATION=%%B
echo %BIZINSTALLATION%

echo "GACUTIL.exe path is" %GACUTIL%
echo "Dll path is" %DllPath%

Echo *****  Installing Cards Hub dlls in GAC ***** 
Echo 

%GACUTIL% /i "%DllPath%%ProjectComponentDll%"
echo %ProjectComponentDll% added to the GAC
%GACUTIL% /i "%DllPath%%ProjectPipelineComponentDll%"
echo %ProjectPipelineComponentDll% added to the GAC
%GACUTIL% /i "%DllPath%%ProjectPipelineDll%"
echo %ProjectPipelineDll% added to the GAC
%GACUTIL% /i "%DllPath%%ProjectSchemasDll%"
echo %ProjectSchemasDll% added to the GAC
%GACUTIL% /i "%DllPath%%ProjectTransformsDll%"
echo %ProjectTransformsDll% added to the GAC
%GACUTIL% /i "%DllPath%%ProjectOrchestrationDll%"
echo %ProjectOrchestrationDll% added to the GAC

pause;
